package com.ruoyi.web.controller.common;

import com.ruoyi.framework.datasource.DynamicDataSourceContextHolder;
import com.ruoyi.system.service.OrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class taskCommon {
    @Autowired
    OrderService orderService;

    @Scheduled(cron = "0 0/10 * * * ?")
    public void operatorDivide() {
        log.info("运营商入账开始");
        orderService.operatorDivide();
        log.info("运营商入账结束");
    }

}
